//
// Created on 2024/4/30.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef DIANPING_CAPI_DEMO_DATASOURCE_H
#define DIANPING_CAPI_DEMO_DATASOURCE_H
#include <string>

// hardcoded for demo purpose. 
class DataSource {
private:
    static int id;
    std::string m_text;
    std::string m_imagePath;
public:
    DataSource();
    ~DataSource();
    void setText(std::string text);
    void setImage(std::string imagePath);
    std::string getText();
    std::string getImage();
};

#endif //DIANPING_CAPI_DEMO_DATASOURCE_H
